# encoding=utf8

from app.view.main import main
from app.view.users import users
from app.view.device import device

DEFAULT_BLUEPRINT = [
    (main, ''),
    (users, '/user'),
    (device, '/device')
]


def init_blueprint(app):
    for blueprint, prefix in DEFAULT_BLUEPRINT:
        app.register_blueprint(blueprint, url_prefix=prefix)
